<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@page import="com.damn.bean.GeneralBean,java.util.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>
<link rel="SHORTCUT ICON" href="favicon.ico">
<meta name="Description" content="Facebook Post Automator" />
<meta name="Keywords" content="Facebook,Schedule Facebook Post" />
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta name="Distribution" content="Global" />
<meta name="Author" content="Dhaval Mehta - dmehta17@gmail.com" />

<link rel="stylesheet" href="images/CoolWater.css" type="text/css" />

<title>FBAuto - Login</title>
<script>
function submitForm(actionType)	{
	document.loginForm.action = '<%=request.getContextPath()%>/FBAuto?action='+actionType;
	document.loginForm.submit();
}
</script>

</head>
<body>
<% 
String msgStr = "";
if(request.getAttribute("msgStr")!=null)	{
	msgStr = (String)request.getAttribute("msgStr");
}
%>
<!-- wrap starts here -->
<div id="wrap" style="margin-top: 12%">
		
	<!--header -->
	<div id="header">					
		<h1 id="logo-text"><a href="main.jsp">FB Auto</a></h1>		
	</div>
	<!-- content-wrap starts here -->
	<div id="content-wrap">
		
		<div id="main">	
			<form action="" method="POST" name="loginForm">			
				<div id="loginInfo" style="margin-left:25%;width:50%;vertical-align: center;text-align: center;" >
				<label style="color: red;size: 15"><%=msgStr%></label>
				<table style="width:100%;padding-bottom:10px;padding-top: 10px">
				<tr>
				<td>User Name :</td>
				<td><input type="text" name = "username"></td>
				</tr>
				<tr>
				<td>Password :</td>
				<td><input type="password" name = "password"></td>
				</tr>
				</table>
				<input class = "button" type="button" value ="Login" onClick="submitForm('login')">
				&nbsp;
				<input class = "button" type="button" value ="Register" onClick="submitForm('newUser')">
				</div>
			</form>			
			<br />			
		</div>		 
	<!-- content-wrap ends here -->	
	</div>
					
	<!--footer starts here-->
	<div id="footer">
			
		<p>
		&copy; 2012 <strong>FB Auto</strong> | 
		Design by: <a href="http://www.styleshout.com/">styleshout</a> |
		Developed by : <a href="http://www.mehtadhaval.blogspot.com">Dhaval</a>	
   		</p>
				
	</div>	

<!-- wrap ends here -->
</div>

</body>
</html>
 